<?php
include_once('db.class.php');
include_once('kiwee.class.php');

$kiwee = new Kiwee();
$dbse = new db();
/*
$dbase = new db();

$result=$dbase->sel('modx_' . 'ecomm_', 'cart_header', 'id,session_id');
$row=$result;

$result=$dbase->upd('modx_' . 'ecomm_', 'config_values', "optval='CT'", "optname='company_state'");

//$dbase->ins('modx_' . 'ecomm_', 'config_values', 'optname,optval',"'config.test','Test'");

$result=$dbase->sel('modx_' . 'ecomm_', 'config_values', 'id,optname,optval', "optname='config.test'");
$row=$result;
  
for($k=0; $k < sizeof($result); $k++){
	echo "ID: " . $row[0]['id'] . " name: " . $row[0]['optname'] . " VAL: " . $row[0]['optval'] . "\n\n";
}
echo "\n\n\nBLABLABLA\n\n\n";

$dbase->del('modx_' . 'ecomm_', 'config_values', 'id=' . $row[0]['id']);

$result=$dbase->sel('modx_' . 'ecomm_', 'cart_header', 'id,optname,optval',"optname='config.test'");

$row=$result;
for($k=0; $k < sizeof($result); $k++){
	echo "AFTER DELETE\n\n";
	echo "ID: " . $row[0]['id'] . " name: " . $row[0]['optname'] . " VAL: " . $row[0]['optval'] . "\n\n";
}
*/
echo "BLABLABLA\n\n\n";
?>
	